﻿package   {
	
    import com.calefk.core.Entity;
    import com.calefk.core.EntitySimple;
	import flash.display.MovieClip;
	import flash.events.Event;
	import flash.text.TextField;
	import flash.system.System;
	import flash.ui.ContextMenu;
	import com.mod.ModProject;
    import com.calefk.core.*;
    import com.calefk.modules.*;
	import com.calefk.util.*;
    /*
	 * Comentario de prueba
	 * */
	public class Main extends MovieClip {
		
		public function Main() {
            var list:Vector.<Entity>;            
			// hidden right click
			/*var fm_menu:ContextMenu = new ContextMenu();
			fm_menu.hideBuiltInItems();
			this.contextMenu = fm_menu;*/
			// initialize project
			ModProject.initialize(this);
			
			// add evento de update
			stage.addEventListener(Event.ENTER_FRAME , update , false , 0 , true);
		}
		
		private function update(e:Event):void {
			if (ModProject.getInstance()) {
				ModProject.getInstance().update();
			}
		}
		
		public function onBuild():void {
			ModProject.onBuild();
		}
	}
}